﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;

namespace BaseAuthRole.Web.Filters
{
    public class RoleActionCheckFilter : ActionFilterAttribute
    {
        //action执行后
        public override void OnActionExecuted(ActionExecutedContext context)
        {

        }
        //action执行前
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            var c = context.ActionDescriptor;

            var action = context.HttpContext.Request.RouteValues["action"].ToString();

            var controller= context.HttpContext.Request.RouteValues["controller"].ToString();






        }
    }
}
